package com.itheima.pinda.service;

import com.itheima.pinda.DTO.transportline.TransportTripsTruckDriverDto;

import java.util.List;

public interface PdTransportTripsTruckDriverService {

    /**
     * 批量保存车次与车辆和司机关系
     *
     * @param truckTransportTripsDto
     */
    void batchSave(List<TransportTripsTruckDriverDto> truckTransportTripsDto);

    /**
     * 获取车次与车辆关联列表
     *
     * @param transportTripsId 车次id
     * @param truckId          车辆Id
     * @param userId           司机id
     * @return 车次与车辆关联列表
     */
    List<TransportTripsTruckDriverDto> findAll(String transportTripsId, String truckId, String userId);
}
